# Generated by Django 4.1 on 2022-08-17 13:19

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='AccountAdditionalInformation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dolphin_login', models.CharField(blank=True, max_length=250, null=True, verbose_name='Логин дельфин')),
                ('dolphin_password', models.CharField(blank=True, max_length=250, null=True, verbose_name='Пароль дельфин')),
                ('mail_login', models.EmailField(blank=True, max_length=254, null=True, verbose_name='Логин почты')),
                ('mail_password', models.CharField(blank=True, max_length=254, null=True, verbose_name='Пароль почты')),
            ],
            options={
                'verbose_name': 'Дополнительная информация (логины, пароли)',
                'verbose_name_plural': 'Дополнительные данные (логины, пароли)',
            },
        ),
        migrations.CreateModel(
            name='TableUser',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name='Имя')),
                ('surname', models.CharField(max_length=250, verbose_name='Фамилия')),
                ('address', models.CharField(max_length=250, verbose_name='Адрес')),
                ('date_of_birth', models.DateField(verbose_name='Дата рождения')),
                ('date_of_creation', models.DateTimeField(auto_now_add=True, verbose_name='Дата создания')),
            ],
            options={
                'verbose_name': 'Пользователь из таблицы',
                'verbose_name_plural': 'Пользователи из таблицы',
            },
        ),
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('link_to_store', models.CharField(max_length=250, verbose_name='Ссылка на магазин')),
                ('status', models.CharField(choices=[('ban', 'Бан'), ('product_pump_layout', 'Выкладка памп товара'), ('unsubscribe_in_th', 'Отписать в тх вопросы на почту'), ('put_product_on_sale', 'Выкладка товара на продажу'), ('ok', 'OK'), ('product_is_paid_for', 'Товар оплачен'), ('relist', 'Релист')], max_length=50, verbose_name='Статус')),
                ('purchase_amount', models.PositiveIntegerField(verbose_name='Сумма покупки $')),
                ('payment_date', models.DateTimeField(verbose_name='Дата выплаты')),
                ('track_code', models.CharField(max_length=15, verbose_name='Трек код')),
                ('product_for_display_and_location', models.CharField(max_length=250, verbose_name='Товар для выкладки и локация')),
                ('date_of_creation', models.DateTimeField(auto_now_add=True, verbose_name='Создан')),
                ('additional_information', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='main.accountadditionalinformation', verbose_name='Доп. информация (логины, пароли)')),
                ('data_per_person_with_registration', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='main.tableuser', verbose_name='Пользователь (из таблицы)')),
            ],
            options={
                'verbose_name': 'Аккаунт',
                'verbose_name_plural': 'Аккаунты',
            },
        ),
        migrations.CreateModel(
            name='SiteUser',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='Почта')),
                ('user_status', models.CharField(choices=[('administrator', 'Администратор'), ('manager', 'Менеджер')], max_length=15, verbose_name='Статус пользователя')),
                ('is_confirmed_by_administrator', models.BooleanField(default=False, verbose_name='Подтвержден администратором')),
                ('is_staff', models.BooleanField(default=True, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'Пользователь сайта (администратор, менеджер)',
                'verbose_name_plural': 'Пользователи сайта (администраторы, менеджеры)',
            },
        ),
    ]
